@mixin animation($params) {
    $name: first($params);
    animation: $params;
    @keyframes #{$name} {
        @content
    }
}